package com.dingreading.cloud.subject.service;

import com.dingreading.cloud.common.base.R;
import com.dingreading.cloud.subject.entity.Subjects;
import com.mybatisflex.core.service.IService;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * 服务层。
 *
 * @author Administrator
 * @since 2023-11-22
 */
public interface SubjectsService extends IService<Subjects> {

    List<Subjects> getMainSubjectsV3(List<Long> subjectIdList);

    List<Subjects> getChildSubjectsV2(Long mainId);

    // 兜学慧学科列表
    List<Subjects> dxhListByMainId(long mainId);

    R<Object> getDownloadUrl(
            HttpServletRequest request, String corpUid, String storeUid, String storeName, String staffUid, String staffName, Long id
    );

    R<Object> getSubjectFile(
            HttpServletRequest request, String corpUid, String storeUid, String storeName, String staffUid, String staffName, Long id
    );

}
